<%--
  Created by bothin
  At 2019/12/20 17:38
  Description: 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.bothin.experiment4.enums.LogistStatusEnum" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table class="layui-table" style="width: 500px;margin: 32px;">
    <colgroup>
        <col>
        <col>
    </colgroup>
    <tbody>
    <tr>
        <td>物流编号</td>
        <td>${logistInfo.id}</td>
    </tr>
    <tr>
        <td>发货单号</td>
        <td>${logistInfo.formId}</td>
    </tr>
    <tr>
        <td>物流公司</td>
        <td>${logistInfo.logistCompany}</td>
    </tr>
    <tr>
        <td>下单时间</td>
        <td><fmt:formatDate type="both" value="${logistInfo.createTime}"/></td>
    </tr>
    <tr>
        <td>物流信息</td>
        <td>
            <c:if test="${logistInfo.logistStatus==LogistStatusEnum.NOT_SEND.code}">
                <button  class="layui-btn layui-btn-primary layui-btn-xs">${LogistStatusEnum.NOT_SEND.message}</button>
            </c:if>
            <c:if test="${logistInfo.logistStatus==LogistStatusEnum.TRANSIT.code}">
                <button  class="layui-btn layui-btn-warm layui-btn-xs">${LogistStatusEnum.TRANSIT.message}</button>
            </c:if>
            <c:if test="${logistInfo.logistStatus==LogistStatusEnum.FINISH.code}">
                <button class="layui-btn layui-btn-normal layui-btn-xs">${LogistStatusEnum.FINISH.message}</button>
            </c:if>
        </td>
    </tr>
    </tbody>
</table>
